package com.zj.osm.entity.greendao;

import android.os.Parcel;
import android.os.Parcelable;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * ┌─────────────────────────────────────────────────────────────┐
 * │┌───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┬───┐│
 * ││Esc│!1 │@2 │#3 │$4 │%5 │^6 │&7 │*8 │(9 │)0 │_- │+= │|\ │`~ ││
 * │├───┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴───┤│
 * ││ Tab │ Q │ W │ E │ R │ T │ Y │ U │ I │ O │ P │{[ │}] │ BS  ││
 * │├─────┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴┬──┴─────┤│
 * ││ Ctrl │ A │ S │ D │ F │ G │ H │ J │ K │ L │: ;│" '│ Enter  ││
 * │├──────┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴─┬─┴────┬───┤│
 * ││ Shift  │ Z │ X │ C │ V │ B │ N │ M │< ,│> .│? /│Shift │Fn ││
 * │└─────┬──┴┬──┴──┬┴───┴───┴───┴───┴───┴──┬┴───┴┬──┴┬─────┴───┘│
 * │      │Fn │ Alt │         Space         │ Alt │Win│   HHKB   │
 * │      └───┴─────┴───────────────────────┴─────┴───┘          │
 * └─────────────────────────────────────────────────────────────┘
 * 版权：渤海新能 版权所有
 *
 * @author feiWang
 * 版本：1.5
 * 创建日期：12/22/20
 * 描述：OsmDroid
 * E-mail : 1276998208@qq.com
 * CSDN:https://blog.csdn.net/m0_37667770/article
 * GitHub:https://github.com/luhenchang
 */
@Entity
public class ProgramTab implements Parcelable {
    @Id(autoincrement = true)
    private Long id;
    //问题类型
    private String prType;
    //问题名称
    private String prName;
    //问题个数
    private int prNumber;
    //问题状态
    private String prState;
    //关联id
    private long pointID;

    public long getPointID() {
        return pointID;
    }

    public void setPointID(long pointID) {
        this.pointID = pointID;
    }

    public static Creator<ProgramTab> getCREATOR() {
        return CREATOR;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPrType() {
        return prType;
    }

    public void setPrType(String prType) {
        this.prType = prType;
    }

    public String getPrName() {
        return prName;
    }

    public void setPrName(String prName) {
        this.prName = prName;
    }

    public int getPrNumber() {
        return prNumber;
    }

    public void setPrNumber(int prNumber) {
        this.prNumber = prNumber;
    }

    public String getPrState() {
        return prState;
    }

    public void setPrState(String prState) {
        this.prState = prState;
    }

    @Override
    public String toString() {
        return "ProgramTab{" +
                "prName='" + prName + '\'' +
                '}';
    }

    public ProgramTab() {
    }

    @Generated(hash = 967694246)
    public ProgramTab(Long id, String prType, String prName, int prNumber, String prState,
            long pointID) {
        this.id = id;
        this.prType = prType;
        this.prName = prName;
        this.prNumber = prNumber;
        this.prState = prState;
        this.pointID = pointID;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeValue(this.id);
        dest.writeString(this.prType);
        dest.writeString(this.prName);
        dest.writeInt(this.prNumber);
        dest.writeString(this.prState);
        dest.writeLong(this.pointID);
    }

    protected ProgramTab(Parcel in) {
        this.id = (Long) in.readValue(Long.class.getClassLoader());
        this.prType = in.readString();
        this.prName = in.readString();
        this.prNumber = in.readInt();
        this.prState = in.readString();
        this.pointID = in.readLong();
    }

    public static final Creator<ProgramTab> CREATOR = new Creator<ProgramTab>() {
        @Override
        public ProgramTab createFromParcel(Parcel source) {
            return new ProgramTab(source);
        }

        @Override
        public ProgramTab[] newArray(int size) {
            return new ProgramTab[size];
        }
    };
}
